// 电话费，电费，水费计算程序

#include <iostream>
using namespace std;

int main() {
    float costs[12][3]; // 12个月， 每月的电话费，电费，水费

    float sums[3];
    for (int i = 0; i < 3; i++) {
        // 分别统计电话费, 电费,水费12个月的总费用
        sums[i] = 0.0f;
        for (int j = 0; j < 12; j++) {
            sums[i] += costs[j][i];
        }
    }

    float sum = sums[0] + sums[1] + sums[2];
    cout << "年度总费用为: " << sum << "\n";
    cout << "电话费为: " << sums[0] << "\n";
    cout << "电费为: " << sums[1] << "\n";
    cout << "水费为: " << sums[2] << "\n";
}
